package ar.com.cooker.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
/**
 * Objecto BO Sub Tipo de Tipos de Recetas.
 * @author c02536
 *
 */
@Entity
@Table(name = "ck_SubRecipe_Type")
public class SubRecipeType implements Serializable {

	private static final long serialVersionUID = 8406023199121944228L;

	@Id
	@Column(name = "id_subRecipe_type")
	private Integer id;
	
	private String description;
	
	@ManyToOne(targetEntity = SubRecipeType.class)
	@JoinColumn(name = "id_recipe_type_fk")
	private RecipeType recipeType;

	public SubRecipeType() {
	}

	public SubRecipeType(Integer id,String description) {
		this.description = description;
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setRecipeType(RecipeType recipeType) {
		this.recipeType = recipeType;
	}

	public RecipeType getRecipeType() {
		return recipeType;
	}
	
}
